package com.zz.common.base.enums;

public enum BaseExceptionEnum implements IBaseExceptionEnum{

    SUCCESS("01", "Success"),
    FAIL("02", "fail"),
    VALIDATION_ERROR("400", "Validation Error"),
    UNAUTHORIZED("401", "Unauthorized"),
    FORBIDDEN("403", "Forbidden"),
    NOT_FOUND("404", "Not Found"),
    INTERNAL_SERVER_ERROR("500", "Internal Server Error"),
    BUSINESS_EXCEPTION("600", "business exception"),
    NOT_FOUND_TOKEN("700", "not found token"),
    SYSTEM_ERROR("800", "system_error"),
    SYSTEM_FAIL("02", "{0}");

    private String code;
    private String message;

    BaseExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
